﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;

namespace WFBASE
{
    //获取错误信息
    public class Message
    {
        static WFDAL.OracleCommand _db = new WFDAL.OracleCommand();
        public static string GetMessage(string messageCode)
        {
            DataTable dt = _db.QueryByWhere("wf_messages", "msg_code='"+messageCode+"'");
            if (dt == null || dt.Rows.Count == 0)
                return messageCode;
            return dt.Rows[0]["msg_content"].ToString();
        }
    }
}
